﻿<%@ Page 
    Language="C#" 
    AutoEventWireup="true" 
    CodeBehind="AlunoManutencao.aspx.cs" 
    Inherits="Arquitetura.UI.WebApp.AlunoManutencao" 
    MasterPageFile="~/Master/Default.Master"
    Theme="Default"
%>
<asp:Content ContentPlaceHolderID="cphHead" runat="server">
</asp:Content>
<asp:Content ContentPlaceHolderID="cphContent" runat="server">
    <h1>
        Cadastrar Aluno
    </h1>
    <asp:UpdatePanel ID="upAlunoManutencao"
        runat="server"
        ChildrenAsTriggers="true"
        RenderMode="Inline"
        UpdateMode="Conditional">
        <ContentTemplate>
            <div class="Cadastro">
                <table>
                    <tr>
                        <td>
                            <label for='<%= txtNome.ClientID %>'>
                                <asp:Label ID="lblNome"
                                    runat="server"
                                    SkinID="TituloCampo"
                                    Text="Nome:*" />
                            </label>
                        </td>
                        <td>
                            <asp:TextBox ID="txtNome"
                                runat="server" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <label for='<%= txtSobrenome.ClientID %>'>
                                <asp:Label ID="lblSobrenome"
                                    runat="server"
                                    SkinID="TituloCampo"
                                    Text="Sobrenome:*" />
                            </label>
                        </td>
                        <td>
                            <asp:TextBox ID="txtSobrenome"
                                runat="server" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <label for='<%= txtCPF.ClientID %>'>
                                <asp:Label ID="lblCPF"
                                    runat="server"
                                    SkinID="TituloCampo"
                                    Text="CPF:*" />
                            </label>
                        </td>
                        <td>
                            <asp:TextBox ID="txtCPF"
                                runat="server" 
                            /><act:MaskedEditExtender ID="meeCPF"
                                runat="server" 
                                SkinID="CPF" 
                                TargetControlID="txtCPF" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <label for='<%= txtRG.ClientID %>'>
                                <asp:Label ID="lblRG"
                                    runat="server"
                                    SkinID="TituloCampo"
                                    Text="RG:*" />
                            </label>
                        </td>
                        <td>
                            <asp:TextBox ID="txtRG"
                                runat="server" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <label for='<%= txtProntuario.ClientID %>'>
                                <asp:Label ID="lblProntuario"
                                    runat="server"
                                    SkinID="TituloCampo"
                                    Text="Prontuário:" />
                            </label>
                        </td>
                        <td>
                            <asp:TextBox ID="txtProntuario"
                                runat="server" />
                        </td>
                    </tr>
                    <tr>
                        <td />
                        <td>
                            <asp:Button ID="btnSalvar"
                                runat="server"
                                OnClick="btnSalvar_Click"
                                Text="Salvar" 
                                ValidationGroup="vgAlunoManutencao" />
                        </td>
                    </tr>
                </table>
            </div>
            <asp:Panel ID="panErros" runat="server" Visible="false" SkinID="Erros">
                <asp:Literal ID="litErros" runat="server" />
            </asp:Panel>
            <asp:ValidationSummary ID="vasAlunoManutencao"
                runat="server" 
                DisplayMode="BulletList"
                ValidationGroup="vgAlunoManutencao" />
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>